{include file="header.html"}
<div class="title tc ml-30 mr-10">
	<h2>用户注册信息</h2>
</div>
<div class="content px-20">
<form name="myForm" id="myForm" action="/index.php?act=register&st=regSave2" method="post">
	<section id="step1">
		<table class="my-10">
		    <tbody>
		        <tr>
		            <td class="pl-20 tr"> 姓名 </td><td class="pl-15"><input id="sales_name" name="sales_name" type="text"/></td>
		        </tr>
		        <tr>
		            <td class="pl-20 tr">性别</td>
		            <td class="pl-15">
		            	<input type="radio" name="sex" value='1' checked="checked">男
		            	<input type="radio" name="sex" value='2'>女
					</td>
		        </tr>
		        <tr>
		            <td class="pl-20 tr">所在部门 </td><td class="pl-15"><input id="depart" name="depart" type="text" /></td>
		        </tr>
		        <tr>
		            <td class="pl-20 tr">业务类别</td><td class="pl-15"><input name="sales_type" type="text"/></td>
		        </tr>
		        <tr>
		            <td class="pl-20 tr">负责产品</td><td class="pl-15"><input name="sales_produce" type="text" /></td>
		        </tr>
		        <tr>
		            <td class="pl-20 tr">负责区域</td><td class="pl-15"><input name="sales_area" type="text" /></td>
		        </tr>
		        <tr>
		            <td class="pl-20 tr">手机</td><td class="pl-15"><input name="mobile" type="tel" /></td>
		        </tr>
		        <tr>
		            <td class="pl-20 tr">固话</td><td class="pl-15"><input name="tel" type="tel" /></td>
		        </tr>
		        <tr>
		            <td class="pl-20 tr">邮箱</td><td class="pl-15"><input name="email" type="email" /></td>
		        </tr>
		        <tr>
		            <td class="pl-20 tr">传真</td><td class="pl-15"><input name="fax" type="tel"/></td>
		        </tr>
		        <tr>
		            <td class="pl-20 tr">常驻办公地点</td><td class="pl-15"><input name="office_addr" type="text" /></td>
		        </tr>
		        <tr>
		        	<td class="pl-20 tr">员工类型</td>
		            <td class="pl-15">
		           	  <select name="user_category_id" id="user_category_id">
		           	  	<option value="0" selected="selected">请选择</option>
		           	  {foreach item=user_type from=$user_types}
		           	  	<option value="{$user_type.user_category_id}">{$user_type.category_name}</option>
		           	  {/foreach}
		           	  </select>
					</td>
		        </tr>
		    </tbody>
		</table>
		<p class="tc mt-30"><span id="btn_submit" class="btn w-90" style="display:inline-block">提  交  </span></p>
	</section>	
</form>
</div>
<script type="text/javascript">
$(function(){
	$("#btn_submit").on("click",function(){
		var sales_name = $.trim($("#sales_name").val());
		var depart = $.trim($("#depart").val());
		var user_category_id = $("#user_category_id").val();
		if(sales_name == '') {
			alert("请填写姓名");
			$("#sales_name").focus();
			return false;
		}
		if(depart == '') {
			alert("请填写所在部门 ");
			$("#depart").focus();
			return false;
		}
		if(user_category_id == 0) {
			alert("请选择员工类型 ");
			$("#user_category_id").focus();
			return false;
		}
		$("#myForm").submit();
		return true;
	});
});
</script>
{include file="footer.html"}